/*
 * Written by Rossi Kamal
 * Date 2011.01.06
 * 
 */

package net.m2m.policycompiler.sensor.bsn.bloodpressure.translation;






import java.beans.XMLEncoder;
import java.io.BufferedOutputStream;
import java.io.FileOutputStream;


public class BloodpressureHighTranslate  {
	public static void main(String[] args) {
		try {

			Bloodpressure bpHigh= new Bloodpressure();
			bpHigh.setSystolic(180);
			bpHigh.setDiastolic(120);
                        			
			XMLEncoder encoder = new XMLEncoder(new BufferedOutputStream(
					new FileOutputStream("/home/Siddiqui/workspace/M2M/policy_xml/sensor/bsn/bloodpressure/high/BloodPressureHigh.xml")));
			encoder.writeObject(bpHigh);
			encoder.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
